@alicevia/eslint-config-basic 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +48 -0
  2. package/package.json +27 -0
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ es2021: true,
5
+ node: true,
6
+ },
7
+ extends: ['standard', 'plugin:import/recommended'],
8
+ plugins: [],
9
+ settings: {
10
+ 'import/resolver': {
11
+ node: { extensions: ['.js', '.mjs'], },
12
+ },
13
+ },
14
+ ignorePatterns: [
15
+ '*.min.*',
16
+ 'CHANGELOG.md',
17
+ 'dist',
18
+ 'LICENSE*',
19
+ 'output',
20
+ 'coverage',
21
+ 'public',
22
+ 'temp',
23
+ 'packages-lock.json',
24
+ 'pnpm-lock.yaml',
25
+ 'yarn.lock',
26
+ '__snapshots__',
27
+ '!.github',
28
+ '!.vitepress',
29
+ '!.vscode'
30
+ ],
31
+ rules: {
32
+ 'space-before-function-paren': ['error', 'always'],
33
+ 'comma-dangle': [
34
+ 'error',
35
+ {
36
+ objects: 'always',
37
+ }
38
+ ],
39
+ quotes: ['error', 'single'],
40
+ semi: ['error', 'never'],
41
+ },
42
+ globals: {
43
+ __dirname: 'readonly',
44
+ defineEmits: 'readonly',
45
+ defineProps: 'readonly',
46
+ $message: 'readonly',
47
+ },
48
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@alicevia/eslint-config-basic",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "files": [
7
+ "index.js"
8
+ ],
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "eslint-config-standard": "^17.0.0",
14
+ "eslint-plugin-import": "^2.26.0",
15
+ "eslint-plugin-n": "^15.2.0",
16
+ "eslint-plugin-promise": "^6.0.0"
17
+ },
18
+ "devDependencies": {
19
+ "eslint": "^8.15.0"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "test": "echo \"Error: no test specified\" && exit 1"
26
+ }
27
+ }