Skip to content

Commit ad70f7e

Browse files
committed
Use common ESLint config
1 parent 37c1aaf commit ad70f7e

File tree

2 files changed

+15
-133
lines changed

2 files changed

+15
-133
lines changed

.eslintrc

Lines changed: 2 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,6 @@
11
{
2-
"rules": {
3-
"space-before-function-paren": [2, { "named": "never" }],
4-
"no-shadow-restricted-names": [2],
5-
"computed-property-spacing": [2],
6-
"no-empty-character-class": [2],
7-
"no-irregular-whitespace": [2],
8-
"no-unexpected-multiline": [2],
9-
"no-multiple-empty-lines": [2],
10-
"space-return-throw-case": [2],
11-
"no-constant-condition": [2],
12-
"no-extra-boolean-cast": [2],
13-
"no-inner-declarations": [2],
14-
"no-this-before-super": [2],
15-
"no-use-before-define": [2],
16-
"no-array-constructor": [2],
17-
"object-curly-spacing": [2, "always"],
18-
"no-floating-decimal": [2],
19-
"no-warning-comments": [2],
20-
"handle-callback-err": [2],
21-
"no-unneeded-ternary": [2],
22-
"operator-assignment": [2],
23-
"space-before-blocks": [2],
24-
"no-native-reassign": [2],
25-
"no-trailing-spaces": [2],
26-
"operator-linebreak": [2, "after"],
27-
"consistent-return": [2],
28-
"no-duplicate-case": [2],
29-
"no-invalid-regexp": [2],
30-
"no-negated-in-lhs": [2],
31-
"constructor-super": [2],
32-
"no-nested-ternary": [2],
33-
"no-extend-native": [2],
34-
"block-scoped-var": [2],
35-
"no-control-regex": [2],
36-
"no-sparse-arrays": [2],
37-
"no-throw-literal": [2],
38-
"no-return-assign": [2],
39-
"no-const-assign": [2],
40-
"no-class-assign": [2],
41-
"no-extra-parens": [2],
42-
"no-regex-spaces": [2],
43-
"no-implied-eval": [2],
44-
"no-useless-call": [2],
45-
"no-self-compare": [2],
46-
"no-octal-escape": [2],
47-
"no-new-wrappers": [2],
48-
"no-process-exit": [2],
49-
"no-catch-shadow": [2],
50-
"linebreak-style": [2],
51-
"space-infix-ops": [2],
52-
"space-unary-ops": [2],
53-
"no-cond-assign": [2],
54-
"no-func-assign": [2],
55-
"no-unreachable": [2],
56-
"accessor-pairs": [2],
57-
"no-empty-label": [2],
58-
"no-fallthrough": [2],
59-
"no-path-concat": [2],
60-
"no-new-require": [2],
61-
"no-spaced-func": [2],
62-
"no-unused-vars": [2],
63-
"spaced-comment": [2],
64-
"no-delete-var": [2],
65-
"comma-spacing": [2],
66-
"no-extra-semi": [2],
67-
"no-extra-bind": [2],
68-
"arrow-spacing": [2],
69-
"prefer-spread": [2],
70-
"no-new-object": [2],
71-
"no-multi-str": [2],
72-
"semi-spacing": [2],
73-
"no-lonely-if": [2],
74-
"dot-notation": [2],
75-
"dot-location": [2, "property"],
76-
"comma-dangle": [2, "never"],
77-
"no-dupe-args": [2],
78-
"no-dupe-keys": [2],
79-
"no-ex-assign": [2],
80-
"no-obj-calls": [2],
81-
"valid-typeof": [2],
82-
"default-case": [2],
83-
"no-redeclare": [2],
84-
"no-div-regex": [2],
85-
"no-sequences": [2],
86-
"no-label-var": [2],
87-
"comma-style": [2],
88-
"brace-style": [2],
89-
"no-debugger": [2],
90-
"quote-props": [2, "as-needed"],
91-
"no-iterator": [2],
92-
"no-new-func": [2],
93-
"key-spacing": [2, { "align": "value" }],
94-
"complexity": [2],
95-
"new-parens": [2],
96-
"no-eq-null": [2],
97-
"no-bitwise": [2],
98-
"wrap-iife": [2],
99-
"no-caller": [2],
100-
"use-isnan": [2],
101-
"no-labels": [2],
102-
"no-shadow": [2],
103-
"camelcase": [2],
104-
"eol-last": [2],
105-
"no-octal": [2],
106-
"no-empty": [2],
107-
"no-alert": [2],
108-
"no-proto": [2],
109-
"no-undef": [2],
110-
"no-eval": [2],
111-
"no-with": [2],
112-
"no-void": [2],
113-
"max-len": [2, 80],
114-
"new-cap": [2],
115-
"eqeqeq": [2],
116-
"no-new": [2],
117-
"quotes": [2, "single"],
118-
"indent": [2, 4],
119-
"semi": [2, "always"],
120-
"yoda": [2, "never"]
121-
},
2+
"extends": "eslint-config-postcss/es5",
1223
"env": {
123-
"mocha": true,
124-
"node": true
4+
"mocha": true
1255
}
1266
}

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@
77
"license": "MIT",
88
"repository": "postcss-loader",
99
"dependencies": {
10-
"loader-utils": "^0.2.11",
11-
"postcss": "^5.0.11"
10+
"loader-utils": "^0.2.12",
11+
"postcss": "^5.0.14"
1212
},
1313
"devDependencies": {
14-
"postcss-safe-parser": "1.0.1",
15-
"webpack-stream": "2.1.1",
16-
"gulp-eslint": "1.0.0",
17-
"gulp-mocha": "2.1.3",
18-
"raw-loader": "0.5.1",
19-
"postcss-js": "0.1.0",
20-
"fs-extra": "0.26.2",
21-
"chai": "3.4.1",
22-
"gulp": "3.9.0"
14+
"eslint-config-postcss": "1.0.0",
15+
"postcss-safe-parser": "1.0.4",
16+
"webpack-stream": "3.1.0",
17+
"gulp-eslint": "1.1.1",
18+
"json-loader": "0.5.4",
19+
"raw-loader": "0.5.1",
20+
"postcss-js": "0.1.1",
21+
"gulp-mocha": "2.2.0",
22+
"fs-extra": "0.26.5",
23+
"chai": "3.5.0",
24+
"gulp": "3.9.0"
2325
},
2426
"scripts": {
2527
"test": "gulp"

0 commit comments

Comments
 (0)