mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
chore: add new style rules
This commit is contained in:
parent
66391f4c9c
commit
4c88d2371c
4 changed files with 15 additions and 2 deletions
|
@ -3,7 +3,8 @@
|
|||
"react",
|
||||
"babel",
|
||||
"flowtype",
|
||||
"jest"
|
||||
"jest",
|
||||
"verdaccio"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
|
@ -11,7 +12,8 @@
|
|||
"plugin:react/recommended",
|
||||
"plugin:flowtype/recommended",
|
||||
"plugin:jest/recommended",
|
||||
"plugin:prettier/recommended"
|
||||
"plugin:prettier/recommended",
|
||||
"plugin:verdaccio/recommended"
|
||||
],
|
||||
"settings": {
|
||||
"react": {
|
||||
|
@ -41,6 +43,8 @@
|
|||
"rules": {
|
||||
"babel/no-invalid-this": 1,
|
||||
"prettier/prettier": ["error", null, "@prettier"],
|
||||
"verdaccio/jsx-spread": 2,
|
||||
"verdaccio/no-style": 2,
|
||||
"no-useless-escape": 2,
|
||||
"no-invalid-this": 0,
|
||||
"react/no-deprecated": 1,
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
"eslint-plugin-jest": "21.22.1",
|
||||
"eslint-plugin-prettier": "2.6.2",
|
||||
"eslint-plugin-react": "7.11.1",
|
||||
"eslint-plugin-verdaccio": "0.0.2",
|
||||
"file-loader": "2.0.0",
|
||||
"flow-bin": "0.81.0",
|
||||
"flow-runtime": "0.17.0",
|
||||
|
|
|
@ -13,6 +13,14 @@
|
|||
"rules": {
|
||||
"valid-jsdoc": 0,
|
||||
"no-redeclare": 1,
|
||||
"jest/consistent-test-it": ["error", {"fn": "test"}],
|
||||
"jest/no-jasmine-globals": 2,
|
||||
"jest/expect-expect": [
|
||||
"error",
|
||||
{
|
||||
"assertFunctionNames": ["expect"]
|
||||
}
|
||||
],
|
||||
"no-console": [
|
||||
2,
|
||||
{
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue