@wildpastry/eslint-config 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/.eslintrc +11 -2
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/.eslintrc CHANGED
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "root": true,
8
8
 
9
- "ignorePatterns": ["cypress/*"],
9
+ "ignorePatterns": ["cypress/*", "*.html"],
10
10
 
11
11
  "overrides": [
12
12
  {
@@ -22,6 +22,14 @@
22
22
  "es6": true
23
23
  },
24
24
 
25
+ "settings": {
26
+ "react": {
27
+ "createClass": "createReactClass",
28
+ "pragma": "React",
29
+ "version": "detect"
30
+ }
31
+ },
32
+
25
33
  "plugins": ["react"],
26
34
 
27
35
  "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
@@ -295,7 +303,8 @@
295
303
  "no-spaced-func": 1, // disallow space between function identifier and application // DONE
296
304
  "keyword-spacing": [1, { "before": true }], // enforce consistent spacing before and after keywords // DONE - CUSTOMISED
297
305
  "array-bracket-spacing": [0, "always"], // enforces consistent spacing inside array brackets // DONE - CUSTOMISED
298
-
306
+ "@typescript-eslint/no-unused-vars": [1, { "argsIgnorePattern": "^_" }], // DONE - CUSTOMISED
307
+
299
308
  // React specific
300
309
  "react/display-name": 0, // prevent missing displayName in a React component definition // DONE - OFF
301
310
  "react/jsx-no-undef": 1, // disallow undeclared variables in JSX // DONE
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  root: true,
3
- ignorePatterns: ["cypress/*"],
3
+ ignorePatterns: ["cypress/*", "*.html"],
4
4
  env: {
5
5
  browser: true,
6
6
  node: true,
@@ -281,7 +281,8 @@ module.exports = {
281
281
  "no-spaced-func": 1, // disallow space between function identifier and application // DONE
282
282
  "keyword-spacing": [1, { "before": true }], // enforce consistent spacing before and after keywords // DONE - CUSTOMISED
283
283
  "array-bracket-spacing": [0, "always"], // enforces consistent spacing inside array brackets // DONE - CUSTOMISED
284
-
284
+ "@typescript-eslint/no-unused-vars": [1, { "argsIgnorePattern": "^_" }], // DONE - CUSTOMISED
285
+
285
286
  // React specific
286
287
  "react/display-name": 0, // prevent missing displayName in a React component definition // DONE - OFF
287
288
  "react/jsx-no-undef": 1, // disallow undeclared variables in JSX // DONE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildpastry/eslint-config",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "ESLint configuration file",
5
5
  "main": "index.js",
6
6
  "scripts": {