1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 16:19:26 +00:00

Added my own npm package for eslint config

This commit is contained in:
2022-02-28 02:50:17 +00:00
parent 59467b8bde
commit cca155aa4a
3 changed files with 62 additions and 127 deletions

View File

@@ -7,95 +7,12 @@
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
"plugin:jest/recommended",
"@matt-fidd"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"always"
],
"no-unused-vars": [
"error",
{
"vars": "local",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"max-len": [
"error",
{
"code": 80,
"tabWidth": 8
}
],
"array-bracket-spacing": [
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"no-extra-parens": [
"error"
],
"no-template-curly-in-string": [
"error"
],
"no-unreachable-loop": [
"error"
],
"block-scoped-var": [
"error"
],
"curly": [
"error",
"multi-or-nest",
"consistent"
],
"no-alert": [
"error"
],
"no-else-return": [
"error"
],
"no-empty-function": [
"error"
],
"no-self-compare": [
"error"
],
"no-useless-return": [
"error"
],
"brace-style": [
"error"
],
"strict": [
"error",
"global"
]
}
}