1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-07 15:56:35 +02:00

Update eslint and add sensible rules (including important React rules)

This commit is contained in:
Soreine
2016-10-25 13:11:19 +02:00
parent 0bd52d35cd
commit e81708e82f
2 changed files with 8 additions and 6 deletions

View File

@@ -43,8 +43,8 @@
"new-parens": "error",
"no-array-constructor": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-console": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
@@ -76,7 +76,7 @@
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "error",
"no-unused-vars": "warn",
"no-unused-vars": ["warn", { "vars": "all", "args": "none" }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
@@ -102,6 +102,9 @@
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-space-before-closing": ["error", "always"],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-wrap-multilines": "error",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
@@ -110,7 +113,6 @@
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "error",
"react/sort-prop-types": "error",
"react/wrap-multilines": "error",
"rest-spread-spacing": ["error", "never"],
"semi": ["error", "never"],
"space-before-blocks": "error",

View File

@@ -39,9 +39,9 @@
"disc": "^1.3.2",
"envify": "^3.4.1",
"enzyme": "^2.4.1",
"eslint": "^3.0.1",
"eslint-plugin-import": "^1.10.2",
"eslint-plugin-react": "^5.2.2",
"eslint": "^3.8.1",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-react": "^6.4.1",
"fbjs": "^0.8.3",
"gh-pages": "^0.11.0",
"http-server": "^0.9.0",