Skip to content

Commit

Permalink
[Test] Restore stylistic rules check
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Dec 5, 2023
1 parent 04cdbee commit e5a5442
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
49 changes: 27 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,60 @@
{
"env": {
"browser": true
"browser": true,
"es6": true
},
"extends": "eslint:all",
"extends": [
"eslint:all",
"plugin:@stylistic/all-extends"
],
"parserOptions": {
"ecmaVersion": 6
"ecmaVersion": 8
},
"plugins": ["html"],
"plugins": [
"@stylistic",
"html"
],
"rules": {
"array-element-newline": ["error", "consistent"],
"camelcase": "off",
"capitalized-comments": "off",
"comma-dangle": ["error", "only-multiline"],
"curly": "off",
"dot-location": ["error", "property"],
"func-names": "off",
"func-style": ["error", "declaration"],
"function-call-argument-newline": "off",
"id-length": ["error", { "min": 1 }],
"max-len": ["error", { "code": 120 }],
"max-lines-per-function": ["warn", 150],
"max-params": ["warn", 5],
"max-statements": ["warn", 40],
"multiline-ternary": ["error", "always-multiline"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }],
"no-alert": "off",
"no-continue": "off",
"no-extra-parens": ["error", "functions"],
"no-implicit-globals": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-ternary": "off",
"no-use-before-define": ["error", { "functions": false }],
"nonblock-statement-body-position": "off",
"object-curly-newline": ["error", { "consistent": true }],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-shorthand": "off",
"one-var": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-named-capture-group": "off",
"prefer-template": "off",
"quote-props" : ["error", "consistent-as-needed"],
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"space-before-function-paren": ["error", {
"strict": ["error", "global"],

"@stylistic/array-element-newline": ["error", "consistent"],
"@stylistic/comma-dangle": ["error", "only-multiline"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/function-call-argument-newline": "off",
"@stylistic/max-len": ["error", { "code": 120 }],
"@stylistic/multiline-ternary": ["error", "always-multiline"],
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }],
"@stylistic/no-extra-parens": ["error", "functions"],
"@stylistic/nonblock-statement-body-position": "off",
"@stylistic/object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"@stylistic/padded-blocks": "off",
"@stylistic/quote-props" : ["error", "consistent-as-needed"],
"@stylistic/space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"strict": ["error", "global"],
"wrap-iife": ["error", "any"]
}]
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"devDependencies": {
"eslint": "*",
"@stylistic/eslint-plugin": "*",
"eslint-plugin-html": "*",
"stylelint-config-standard": "*",
"postcss-html": "*"
Expand Down

0 comments on commit e5a5442

Please sign in to comment.