Browse Source

Added lint files.

obersalzberg
Sebastian Kupke 1 year ago
parent
commit
357153b978
4 changed files with 51 additions and 0 deletions
  1. +2
    -0
      .eslintignore
  2. +35
    -0
      .eslintrc.json
  3. +3
    -0
      .stylelintignore
  4. +11
    -0
      .stylelintrc.json

+ 2
- 0
.eslintignore View File

@ -0,0 +1,2 @@
dist/*
doc/out/*

+ 35
- 0
.eslintrc.json View File

@ -0,0 +1,35 @@
{
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"plugins": [
"mocha"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true
},
"globals": {
"PIXI": false,
"TweenLite": false,
"TweenMax": false,
"TimelineLite": false,
"TimelineMax": false,
"SystemJS": false
},
"extends": "eslint:recommended",
"rules": {
"semi": ["error", "never"],
"quotes": ["warn", "single", {"allowTemplateLiterals": true}],
"no-console": "warn",
"no-unused-vars": ["warn", {"argsIgnorePattern": "^(e|event|points|ended)$"}],
"indent": ["warn", 4, {"SwitchCase": 1}],
"mocha/no-exclusive-tests": "error"
}
}

+ 3
- 0
.stylelintignore View File

@ -0,0 +1,3 @@
dist/*
doc/*
lib/*

+ 11
- 0
.stylelintrc.json View File

@ -0,0 +1,11 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 4,
"selector-list-comma-newline-after": "never-multi-line",
"no-eol-whitespace": [true, {
"ignore": ["empty-lines"]
}]
},
"ignoreFiles": []
}

Loading…
Cancel
Save