mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
88 lines
1.5 KiB
Text
88 lines
1.5 KiB
Text
{
|
|
"plugins": [
|
|
"react",
|
|
"flowtype",
|
|
"jest"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"google",
|
|
"plugin:react/recommended",
|
|
"plugin:flowtype/recommended",
|
|
"plugin:jest/recommended"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 7,
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es6": true,
|
|
"jest": true
|
|
},
|
|
"globals": {
|
|
"__APP_VERSION__": true
|
|
},
|
|
"rules": {
|
|
"no-tabs": 2,
|
|
"keyword-spacing": 2,
|
|
"padded-blocks": 0,
|
|
"no-useless-escape": 0,
|
|
"handle-callback-err": 2,
|
|
"no-debugger": 2,
|
|
"no-fallthrough": 2,
|
|
"curly": 2,
|
|
"eol-last": 1,
|
|
"no-irregular-whitespace": 1,
|
|
"no-mixed-spaces-and-tabs": [
|
|
1,
|
|
"smart-tabs"
|
|
],
|
|
"no-trailing-spaces": 1,
|
|
"no-new-require": 2,
|
|
"no-undef": 2,
|
|
"no-unreachable": 2,
|
|
"no-unused-vars": [
|
|
2,
|
|
{
|
|
"vars": "all",
|
|
"args": "none"
|
|
}
|
|
],
|
|
"max-len": [
|
|
1,
|
|
160
|
|
],
|
|
"semi": [
|
|
2,
|
|
"always"
|
|
],
|
|
"camelcase": 0,
|
|
"require-jsdoc": 0,
|
|
"valid-jsdoc": 0,
|
|
"prefer-spread": 1,
|
|
"prefer-rest-params": 1,
|
|
"no-var": 2,
|
|
"no-constant-condition": 2,
|
|
"no-empty": 2,
|
|
"guard-for-in": 2,
|
|
"no-invalid-this": 2,
|
|
"new-cap": 2,
|
|
"one-var": 2,
|
|
"quote-props":["error", "as-needed"],
|
|
"no-console": [
|
|
2,
|
|
{
|
|
"allow": [
|
|
"warn"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|