@byloth/eslint-config-nuxt 2.7.0
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 +10 -0
- package/index.cjs +45 -0
- package/package.json +26 -0
package/README.md
ADDED
package/index.cjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: [
|
|
3
|
+
"@byloth/eslint-config",
|
|
4
|
+
"@byloth/eslint-config-typescript",
|
|
5
|
+
"@byloth/eslint-config-vue"
|
|
6
|
+
],
|
|
7
|
+
overrides: [
|
|
8
|
+
{
|
|
9
|
+
// Include TypeScript ESLint rules in `*.vue` files...
|
|
10
|
+
// - https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/eslint-recommended.ts
|
|
11
|
+
//
|
|
12
|
+
files: ["*.vue"],
|
|
13
|
+
rules: {
|
|
14
|
+
"constructor-super": "off",
|
|
15
|
+
"getter-return": "off",
|
|
16
|
+
"no-const-assign": "off",
|
|
17
|
+
"no-dupe-args": "off",
|
|
18
|
+
"no-dupe-class-members": "off",
|
|
19
|
+
"no-dupe-keys": "off",
|
|
20
|
+
"no-func-assign": "off",
|
|
21
|
+
"no-import-assign": "off",
|
|
22
|
+
"no-new-symbol": "off",
|
|
23
|
+
"no-obj-calls": "off",
|
|
24
|
+
"no-redeclare": "off",
|
|
25
|
+
"no-setter-return": "off",
|
|
26
|
+
"no-this-before-super": "off",
|
|
27
|
+
"no-undef": "off",
|
|
28
|
+
"no-unreachable": "off",
|
|
29
|
+
"no-unsafe-negation": "off"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
files: [
|
|
34
|
+
"**/app.vue",
|
|
35
|
+
"**/error.vue",
|
|
36
|
+
"**/layouts/**/*.vue",
|
|
37
|
+
"**/pages/**/*.vue"
|
|
38
|
+
],
|
|
39
|
+
rules: {
|
|
40
|
+
"vue/multi-word-component-names": "off",
|
|
41
|
+
"vue/no-multiple-template-root": "error"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@byloth/eslint-config-nuxt",
|
|
3
|
+
"version": "2.7.0",
|
|
4
|
+
"description": "A collection of some common sense linting rules for Nuxt.js projects. ✔",
|
|
5
|
+
"keywords": ["ESLint", "Nuxt.js", "TypeScript", "Linting", "Rules", "Configuration"],
|
|
6
|
+
"homepage": "https://github.com/Byloth/eslint-config/tree/master/packages/eslint-config-nuxt#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Byloth/eslint-config.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/Byloth/eslint-config/issues"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Matteo Bilotta",
|
|
16
|
+
"email": "me@byloth.dev",
|
|
17
|
+
"url": "https://www.byloth.dev/"
|
|
18
|
+
},
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"main": "index.cjs",
|
|
21
|
+
"files": ["index.cjs"],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@byloth/eslint-config-typescript": "^2.7.0",
|
|
24
|
+
"@byloth/eslint-config-vue": "^2.7.0"
|
|
25
|
+
}
|
|
26
|
+
}
|