eslint-config-tpa
v1.2.1
Published
Eslint rules for tpa
Downloads
18
Readme
TPA eslint-config
Install :computer:
npm install eslint-config-tpa
Use :electric_plug:
add to your .eslintrc.json
{
"extends": ["vue", "airbnb/base", "tpa"]
}
Ruleset :cop:
class-methods-use-this :link:
"class-methods-use-this": 0,
comma-dangle :link:
"comma-dangle": "off",
import/extensions :link:
"import/extensions": [1, {
"js": "never"
}],
import/no-extraneous-dependencies :link:
"import/no-extraneous-dependencies": 0,
import/no-unresolved :link:
"import/no-unresolved": 0,
indent :link:
"indent": ["error", 4],
max-len :link:
"max-len": [2, 120, 2, {
"ignoreUrls": true,
"ignoreComments": true
}],
no-console :link:
"no-console": "off",
no-floating-decimal :link:
"no-floating-decimal": "off",
no-param-reassign :link:
"no-param-reassign": "off",
no-plusplus :link:
"no-plusplus": 0
no-useless-constructor :link:
"no-useless-constructor": "off",
prefer-const :link:
"prefer-const": "warn",
prefer-destructuring :link:
"prefer-destructuring": [1, {
"array": false,
"object": true
}]
template-curly-spacing :link:
"template-curly-spacing": ["error", "always"],