|
1 | 1 | {
|
2 |
| - "extends": ["eslint:recommended", "plugin:import/recommended", "plugin:jest/recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"], |
| 2 | + "extends": ["eslint:recommended", "plugin:@stylistic/all-extends", "plugin:import/recommended", "plugin:jest/recommended", "plugin:jsdoc/recommended"], |
3 | 3 | "plugins": [],
|
4 | 4 | "env": {
|
5 | 5 | "browser": true,
|
6 |
| - "es2022": true, |
| 6 | + "es2023": true, |
7 | 7 | "jest/globals": true,
|
8 | 8 | "node": true
|
9 | 9 | },
|
|
16 | 16 | },
|
17 | 17 | "parserOptions": {
|
18 | 18 | "sourceType": "module",
|
19 |
| - "ecmaVersion": 2022, |
| 19 | + "ecmaVersion": 2023, |
20 | 20 | "ecmaFeatures": {
|
21 | 21 | "globalReturn": true
|
22 | 22 | }
|
|
38 | 38 | "no-throw-literal": "error",
|
39 | 39 | "no-unused-vars": "off",
|
40 | 40 | "no-useless-return": "error",
|
41 |
| - "prefer-template": "error" |
42 |
| - } |
| 41 | + "object-shorthand": ["error", "methods"], |
| 42 | + "prefer-template": "error", |
| 43 | + "@stylistic/array-element-newline": ["error", "consistent"], |
| 44 | + "@stylistic/arrow-parens": ["error", "always"], |
| 45 | + "@stylistic/brace-style": "off", |
| 46 | + "@stylistic/comma-dangle": ["error", "never"], |
| 47 | + "@stylistic/dot-location": ["error", "property"], |
| 48 | + "@stylistic/function-call-argument-newline": ["error", "consistent"], |
| 49 | + "@stylistic/function-paren-newline": ["error", "consistent"], |
| 50 | + "@stylistic/implicit-arrow-linebreak": ["error", "beside"], |
| 51 | + "@stylistic/max-statements-per-line": ["error", { "max": 2 }], |
| 52 | + "@stylistic/multiline-ternary": ["error", "always-multiline"], |
| 53 | + "@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }], |
| 54 | + "@stylistic/no-extra-parens": "off", |
| 55 | + "@stylistic/no-tabs": "off", |
| 56 | + "@stylistic/object-curly-spacing": ["error", "always"], |
| 57 | + "@stylistic/object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }], |
| 58 | + "@stylistic/operator-linebreak": ["error", "before"], |
| 59 | + "@stylistic/padded-blocks": "off", |
| 60 | + "@stylistic/quote-props": ["error", "as-needed"], |
| 61 | + "@stylistic/quotes": ["error", "double"], |
| 62 | + "@stylistic/indent": ["error", "tab"], |
| 63 | + "@stylistic/semi": ["error", "always"], |
| 64 | + "@stylistic/space-before-function-paren": ["error", "always"], |
| 65 | + "@stylistic/spaced-comment": "off" |
| 66 | + }, |
| 67 | + "overrides": [ |
| 68 | + { |
| 69 | + "files": ["config/config.js.sample"], |
| 70 | + "rules": { |
| 71 | + "@stylistic/comma-dangle": "off", |
| 72 | + "@stylistic/indent": "off", |
| 73 | + "@stylistic/no-multi-spaces": "off" |
| 74 | + } |
| 75 | + }, |
| 76 | + { |
| 77 | + "files": ["tests/configs/modules/weather/*.js"], |
| 78 | + "rules": { |
| 79 | + "@stylistic/quotes": "off" |
| 80 | + } |
| 81 | + } |
| 82 | + ] |
43 | 83 | }
|
0 commit comments