{
- "extends": "eslint-config-airbnb",
+ "extends": [
+ "airbnb",
+ "plugin:prettier/recommended"
+ ],
"root": true,
"env": {
"browser": true,
"CKEDITOR": true
},
"rules": {
- "consistent-return": [0],
- "no-underscore-dangle": [0],
- "max-nested-callbacks": [1, 3],
- "no-mutable-exports": [1],
- "no-plusplus": [1, {
+ "prettier/prettier": "error",
+ "consistent-return": ["off"],
+ "no-underscore-dangle": ["off"],
+ "max-nested-callbacks": ["warn", 3],
+ "import/no-mutable-exports": ["warn"],
+ "no-plusplus": ["warn", {
"allowForLoopAfterthoughts": true
}],
- "no-param-reassign": [0],
- "no-prototype-builtins": [0],
- "valid-jsdoc": [1, {
+ "no-param-reassign": ["off"],
+ "no-prototype-builtins": ["off"],
+ "valid-jsdoc": ["warn", {
"prefer": {
"returns": "return",
"property": "prop"
},
"requireReturn": false
}],
- "brace-style": ["error", "stroustrup"],
- "no-unused-vars": [1]
+ "no-unused-vars": ["warn"],
+ "operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }]
}
}