neatlint 1.1.13 → 1.1.15
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.
- package/README.md +3 -3
- package/dist/main.js +3 -3
- package/dist/main.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,10 +141,10 @@ Suggested uses are as follows. We recommend using [Prettier](https://npmjs.com/p
|
|
|
141
141
|
> "strict": true,
|
|
142
142
|
> "esModuleInterop": true,
|
|
143
143
|
>
|
|
144
|
-
> "target": "
|
|
145
|
-
> "module": "
|
|
144
|
+
> "target": "ESNext",
|
|
145
|
+
> "module": "ESNext",
|
|
146
146
|
> "moduleResolution": "bundler",
|
|
147
|
-
> "lib": ["
|
|
147
|
+
> "lib": ["DOM", "ESNext"],
|
|
148
148
|
>
|
|
149
149
|
> "typeRoots": ["./types", "./node_modules/@types"]
|
|
150
150
|
> }
|
package/dist/main.js
CHANGED
|
@@ -68,7 +68,7 @@ var javascript_rules = {
|
|
|
68
68
|
"no-new-func": "error",
|
|
69
69
|
"no-new-wrappers": "error",
|
|
70
70
|
"no-object-constructor": "error",
|
|
71
|
-
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
71
|
+
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "CallExpression[callee.property.name='join'][callee.object.callee.property.name='split']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
72
72
|
"no-useless-call": "error",
|
|
73
73
|
"no-useless-computed-key": "error",
|
|
74
74
|
"no-useless-concat": "error",
|
|
@@ -133,13 +133,13 @@ var Neatlint = (options = NeatlintOptionsDefault) => {
|
|
|
133
133
|
files: options.javascript?.files,
|
|
134
134
|
languageOptions: options.javascript?.languageOptions,
|
|
135
135
|
plugins: options.javascript?.plugins,
|
|
136
|
-
rules: options.disabled
|
|
136
|
+
rules: options.disabled ? {} : options.javascript?.rules
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
files: options.typescript?.files,
|
|
140
140
|
languageOptions: options.typescript?.languageOptions,
|
|
141
141
|
plugins: options.typescript?.plugins,
|
|
142
|
-
rules: options.disabled
|
|
142
|
+
rules: options.disabled ? {} : options.typescript?.rules
|
|
143
143
|
},
|
|
144
144
|
...options.config && options.config.length !== 0 ? options.config : []
|
|
145
145
|
];
|
package/dist/main.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var javascript_rules = {
|
|
|
32
32
|
"no-new-func": "error",
|
|
33
33
|
"no-new-wrappers": "error",
|
|
34
34
|
"no-object-constructor": "error",
|
|
35
|
-
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
35
|
+
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "CallExpression[callee.property.name='join'][callee.object.callee.property.name='split']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
36
36
|
"no-useless-call": "error",
|
|
37
37
|
"no-useless-computed-key": "error",
|
|
38
38
|
"no-useless-concat": "error",
|
|
@@ -97,13 +97,13 @@ var Neatlint = (options = NeatlintOptionsDefault) => {
|
|
|
97
97
|
files: options.javascript?.files,
|
|
98
98
|
languageOptions: options.javascript?.languageOptions,
|
|
99
99
|
plugins: options.javascript?.plugins,
|
|
100
|
-
rules: options.disabled
|
|
100
|
+
rules: options.disabled ? {} : options.javascript?.rules
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
files: options.typescript?.files,
|
|
104
104
|
languageOptions: options.typescript?.languageOptions,
|
|
105
105
|
plugins: options.typescript?.plugins,
|
|
106
|
-
rules: options.disabled
|
|
106
|
+
rules: options.disabled ? {} : options.typescript?.rules
|
|
107
107
|
},
|
|
108
108
|
...options.config && options.config.length !== 0 ? options.config : []
|
|
109
109
|
];
|