Added lint files.
This commit is contained in:
parent
5d1408ad9a
commit
357153b978
2
.eslintignore
Normal file
2
.eslintignore
Normal file
@ -0,0 +1,2 @@
|
||||
dist/*
|
||||
doc/out/*
|
35
.eslintrc.json
Normal file
35
.eslintrc.json
Normal 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
.stylelintignore
Normal file
3
.stylelintignore
Normal file
@ -0,0 +1,3 @@
|
||||
dist/*
|
||||
doc/*
|
||||
lib/*
|
11
.stylelintrc.json
Normal file
11
.stylelintrc.json
Normal 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…
Reference in New Issue
Block a user