Skip to content

Commit

Permalink
Add stylistic plugin to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrossBoy committed Nov 25, 2023
1 parent be3e4e2 commit 41c56b5
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 126 deletions.
24 changes: 20 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,42 @@
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"extends": [ "plugin:@stylistic/recommended-extends", "eslint:recommended" ],
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": [
"@stylistic/eslint-plugin"
],
"rules": {
"indent": [
"@stylistic/indent": [
"error",
4
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"@stylistic/quotes": [
"error",
"double"
],
"semi": [
"@stylistic/semi": [
"error",
"always"
],
"no-var": [
"error"
],
"@stylistic/arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"@stylistic/block-spacing": [
"error"
]
}
}
Loading

0 comments on commit 41c56b5

Please sign in to comment.