@ocavue/eslint-config 1.11.0 → 1.11.1
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 +4 -4
- package/dist/src/markdown.d.ts.map +1 -1
- package/dist/src/no-only-tests.d.ts.map +1 -1
- package/dist/src/react.d.ts.map +1 -1
- package/dist/src/vue.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/markdown.js +18 -1
- package/src/no-only-tests.js +0 -1
- package/src/react.js +0 -2
- package/src/vue.js +0 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ You will need to use the new ["flat" ESLint configuration](https://eslint.org/do
|
|
|
21
21
|
|
|
22
22
|
In your `eslint.config.js` file, add the following to extend the basic config:
|
|
23
23
|
|
|
24
|
-
```
|
|
24
|
+
```js
|
|
25
25
|
// eslint.config.js
|
|
26
26
|
import { basic } from '@ocavue/eslint-config'
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ export default [...basic()]
|
|
|
30
30
|
|
|
31
31
|
If you want to use the React config, you can do the following:
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```js
|
|
34
34
|
// eslint.config.js
|
|
35
35
|
import { basic, react } from '@ocavue/eslint-config'
|
|
36
36
|
|
|
@@ -39,7 +39,7 @@ export default [...basic(), ...react()]
|
|
|
39
39
|
|
|
40
40
|
If you want to use the Vue config, you can do the following:
|
|
41
41
|
|
|
42
|
-
```
|
|
42
|
+
```js
|
|
43
43
|
// eslint.config.js
|
|
44
44
|
import { basic, vue } from '@ocavue/eslint-config'
|
|
45
45
|
|
|
@@ -48,7 +48,7 @@ export default [...basic(), ...vue()]
|
|
|
48
48
|
|
|
49
49
|
If you want to use the check the code blocks in markdown files, you can do the following:
|
|
50
50
|
|
|
51
|
-
```
|
|
51
|
+
```js
|
|
52
52
|
// eslint.config.js
|
|
53
53
|
import { basic, markdown } from '@ocavue/eslint-config'
|
|
54
54
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,sGAuCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"AAIA,yGAeC"}
|
package/dist/src/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"AAUA,mGAiCC"}
|
package/dist/src/vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../src/vue.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../src/vue.js"],"names":[],"mappings":"AAWA,iGAgCC"}
|
package/package.json
CHANGED
package/src/markdown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import markdownPlugin from 'eslint-plugin-markdown'
|
|
4
4
|
|
|
5
5
|
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_VUE } from './shared.js'
|
|
6
6
|
|
|
@@ -12,11 +12,28 @@ export function markdown() {
|
|
|
12
12
|
|
|
13
13
|
{
|
|
14
14
|
files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parserOptions: {
|
|
17
|
+
project: null,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
15
20
|
rules: {
|
|
16
21
|
'@typescript-eslint/no-redeclare': 'off',
|
|
17
22
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
18
23
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
19
24
|
'@typescript-eslint/no-var-requires': 'off',
|
|
25
|
+
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
26
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
27
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
28
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
29
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
30
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
31
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
32
|
+
'@typescript-eslint/no-misused-promises': 'off',
|
|
33
|
+
'@typescript-eslint/await-thenable': 'off',
|
|
34
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
35
|
+
'@typescript-eslint/require-await': 'off',
|
|
36
|
+
'deprecation/deprecation': 'off',
|
|
20
37
|
|
|
21
38
|
'no-alert': 'off',
|
|
22
39
|
'no-console': 'off',
|
package/src/no-only-tests.js
CHANGED
package/src/react.js
CHANGED