mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-03 01:15:46 +03:00
Updated eslint
This commit is contained in:
parent
6a035a95ef
commit
e39b26a2af
5
.eslintignore
Normal file
5
.eslintignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
build/
|
||||
gulpfile.js
|
||||
*.conf.js
|
||||
*.config.js
|
||||
demo/
|
|
@ -5,9 +5,11 @@
|
|||
"browser": true,
|
||||
"mocha": true
|
||||
},
|
||||
// currently eslint doesn't support extension-typed configs
|
||||
"globals": {
|
||||
"should": true,
|
||||
"expect": true
|
||||
"expect": true,
|
||||
"sinon": true
|
||||
},
|
||||
"rules": {
|
||||
"quotes": [2, "single"],
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"parser": "babel-eslint",
|
||||
"extends": "eslint:recommended",
|
||||
"env": {
|
||||
"browser": true,
|
||||
},
|
||||
"rules": {
|
||||
"quotes": [2, "single"],
|
||||
"no-console": 0,
|
||||
"comma-spacing": 2,
|
||||
"comma-style": [2, "last"],
|
||||
"consistent-return": 2,
|
||||
"strict": [2, "global"],
|
||||
"eqeqeq": [2, "smart"],
|
||||
"curly": [2, "multi-line"],
|
||||
"semi-spacing": [2, {"before": false, "after": true}],
|
||||
"semi": [2, "always"],
|
||||
"no-extra-semi": 2,
|
||||
"comma-dangle": [2, "never"],
|
||||
"no-sequences": 2,
|
||||
"comma-spacing": [2, {"before": false, "after": true}],
|
||||
"comma-style": [2, "last"]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user