Skip to content

Commit 1e9c32f

Browse files
committed
use cypress dev eslint plugin
1 parent 866d187 commit 1e9c32f

File tree

2 files changed

+6
-118
lines changed

2 files changed

+6
-118
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"chai-enzyme": "0.5.1",
3535
"enzyme": "2.4.1",
3636
"eslint": "^3.6.1",
37+
"eslint-plugin-cypress-dev": "^1.1.1",
3738
"eslint-plugin-mocha": "^4.5.1",
3839
"eslint-plugin-react": "^6.3.0",
3940
"jsdom": "^9.5.0",

src/.eslintrc

Lines changed: 5 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,7 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"commonjs": true,
5-
"mocha": true
6-
},
7-
"globals": {
8-
"expect": true
9-
},
10-
"parser": "babel-eslint",
11-
"parserOptions": {
12-
"ecmaVersion": 6,
13-
"sourceType": "module",
14-
"ecmaFeatures": {
15-
"jsx": true
16-
}
17-
},
18-
"plugins": [
19-
"mocha",
20-
"react"
21-
],
22-
"rules": {
23-
"array-bracket-spacing": ["error", "never"],
24-
"arrow-parens": ["error", "always"],
25-
"arrow-spacing": "error",
26-
"block-spacing": "error",
27-
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
28-
"comma-dangle": ["error", "always-multiline"],
29-
"comma-spacing": "error",
30-
"curly": ["error", "multi-line", "consistent"],
31-
"constructor-super": "error",
32-
"default-case": "error",
33-
"eol-last": "error",
34-
"eqeqeq": ["error", "allow-null"],
35-
"indent": ["error", 2, { "SwitchCase": 1 }],
36-
"key-spacing": "error",
37-
"keyword-spacing": "error",
38-
"no-case-declarations": "error",
39-
"no-class-assign": "error",
40-
"no-cond-assign": "error",
41-
"no-console": "error",
42-
"no-const-assign": "error",
43-
"no-constant-condition": "error",
44-
"no-control-regex": "error",
45-
"no-debugger": "error",
46-
"no-delete-var": "error",
47-
"no-dupe-class-members": "error",
48-
"no-dupe-keys": "error",
49-
"no-dupe-args": "error",
50-
"no-duplicate-case": "error",
51-
"no-duplicate-imports": "error",
52-
"no-empty": "error",
53-
"no-empty-character-class": "error",
54-
"no-empty-pattern": "error",
55-
"no-ex-assign": "error",
56-
"no-extra-boolean-cast": "error",
57-
"no-extra-semi": "error",
58-
"no-fallthrough": "error",
59-
"no-func-assign": "error",
60-
"no-inner-declarations": "error",
61-
"no-invalid-regexp": "error",
62-
"no-irregular-whitespace": "error",
63-
"no-mixed-spaces-and-tabs": "error",
64-
"no-multiple-empty-lines": ["error", { "max": 2 }],
65-
"no-negated-in-lhs": "error",
66-
"no-new-symbol": "error",
67-
"no-obj-calls": "error",
68-
"no-octal": "error",
69-
"no-redeclare": "error",
70-
"no-regex-spaces": "error",
71-
"no-self-assign": "error",
72-
"no-spaced-func": "error",
73-
"no-sparse-arrays": "error",
74-
"no-this-before-super": "error",
75-
"no-trailing-spaces": "error",
76-
"no-undef": "error",
77-
"no-unexpected-multiline": "error",
78-
"no-unreachable": "error",
79-
"no-unused-labels": "error",
80-
"no-unused-vars": "error",
81-
"no-useless-concat": "error",
82-
"no-useless-constructor": "error",
83-
"no-var": "error",
84-
"no-whitespace-before-property": "error",
85-
"object-curly-spacing": ["error", "always"],
86-
"object-shorthand": "error",
87-
"one-var": ["error", "never"],
88-
"prefer-rest-params": "error",
89-
"prefer-spread": "error",
90-
"prefer-template": "error",
91-
"semi": ["error", "never"],
92-
"space-before-blocks": "error",
93-
"space-before-function-paren": "error",
94-
"space-in-parens": ["error", "never"],
95-
"space-infix-ops": "error",
96-
"space-unary-ops": "error",
97-
"template-curly-spacing": "error",
98-
"use-isnan": "error",
99-
"valid-typeof": "error",
100-
101-
"react/jsx-curly-spacing": "error",
102-
"react/jsx-equals-spacing": "error",
103-
"react/jsx-filename-extension": "error",
104-
"react/jsx-no-duplicate-props": "error",
105-
"react/jsx-no-target-blank": "error",
106-
"react/jsx-no-undef": "error",
107-
"react/jsx-pascal-case": "error",
108-
"react/jsx-uses-react": "error",
109-
"react/jsx-uses-vars": "error",
110-
"react/no-unknown-property": "error",
111-
"react/prefer-es6-class": "error",
112-
"react/react-in-jsx-scope": "error",
113-
"react/require-render-return": "error",
114-
"react/wrap-multilines": "error",
115-
116-
"mocha/handle-done-callback": "error",
117-
"mocha/no-exclusive-tests": "error",
118-
"mocha/no-global-tests": "error"
119-
}
2+
"extends": [
3+
"plugin:cypress-dev/general",
4+
"plugin:cypress-dev/react",
5+
"plugin:cypress-dev/tests"
6+
]
1207
}

0 commit comments

Comments
 (0)