chore: add new style rules

This commit is contained in:
Juan Picado @jotadeveloper 2018-12-03 07:18:45 +01:00
parent 66391f4c9c
commit 4c88d2371c
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
4 changed files with 22 additions and 1710 deletions

View File

@ -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,

View File

@ -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",

View File

@ -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,
{

1715
yarn.lock

File diff suppressed because it is too large Load Diff