@ntnyq/eslint-config 0.3.3 → 1.0.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020-present ntnyq
3
+ Copyright (c) 2020-present ntnyq (https://github.com/ntnyq)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/index.js CHANGED
@@ -1,41 +1,9 @@
1
1
  /**
2
- * Based on Standard JavaScript Style
3
- *
4
- * @see https://github.com/standard/eslint-config-standard
2
+ * @file ESLint config
5
3
  */
6
4
 
7
5
  module.exports = {
8
6
  extends: [
9
- // Standard JavaScript style
10
- 'standard',
7
+ `@ntnyq/eslint-config-vue`,
11
8
  ],
12
-
13
- rules: {
14
- /**
15
- * Requires the use of single quotes wherever possible
16
- *
17
- * @see https://eslint.org/docs/rules/quotes
18
- */
19
- quotes: [
20
- 'error',
21
- 'single',
22
- {
23
- allowTemplateLiterals: true,
24
- },
25
- ],
26
-
27
- /**
28
- * Requires the use of `const` or `let` instead of `var`
29
- *
30
- * @see https://eslint.org/docs/rules/no-var
31
- */
32
- 'no-var': ['error'],
33
-
34
- /**
35
- * Requires the use of trailing commas in object and array literals
36
- *
37
- * @see https://eslint.org/docs/rules/comma-dangle
38
- */
39
- 'comma-dangle': ['error', 'always-multiline'],
40
- },
41
9
  }
package/package.json CHANGED
@@ -1,17 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
- "version": "0.3.3",
4
- "description": "ntnyq eslint config",
5
- "keywords": [
6
- "eslint-config",
7
- "ntnyq"
8
- ],
9
- "homepage": "https://github.com/ntnyq/configs#readme",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/ntnyq/configs.git",
13
- "directory": "packages/eslint/config"
14
- },
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "keywords": [],
15
6
  "license": "MIT",
16
7
  "author": {
17
8
  "name": "ntnyq",
@@ -22,13 +13,26 @@
22
13
  "lib"
23
14
  ],
24
15
  "dependencies": {
25
- "eslint-config-standard": "^16.0.3",
26
- "eslint-plugin-import": "^2.24.2",
27
- "eslint-plugin-node": "^11.1.0",
28
- "eslint-plugin-promise": "^5.1.0"
16
+ "@ntnyq/eslint-config-vue": "1.0.1",
17
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
18
+ "@typescript-eslint/parser": "^5.18.0",
19
+ "eslint-plugin-eslint-comments": "^3.2.0",
20
+ "eslint-plugin-html": "^6.2.0",
21
+ "eslint-plugin-import": "^2.26.0",
22
+ "eslint-plugin-jsonc": "^2.2.1",
23
+ "eslint-plugin-markdown": "^2.2.1",
24
+ "eslint-plugin-n": "^15.2.0",
25
+ "eslint-plugin-promise": "^6.0.0",
26
+ "eslint-plugin-unicorn": "^42.0.0",
27
+ "eslint-plugin-yml": "^0.14.0",
28
+ "jsonc-eslint-parser": "^2.1.0",
29
+ "yaml-eslint-parser": "^0.5.0"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"
32
33
  },
33
- "gitHead": "6394d66e2a110b7855d20ff25e14f0f76990ab03"
34
- }
34
+ "devDependencies": {
35
+ "eslint": "^8.15.0",
36
+ "typescript": "^4.0.0"
37
+ }
38
+ }
package/README.md DELETED
@@ -1,38 +0,0 @@
1
- # EsLint config
2
-
3
- ## Usage
4
-
5
- ### Install
6
-
7
- ```bash
8
- $ npm i @ntnyq/eslint-config -D
9
- # OR
10
- $ yarn add @ntnyq/eslint-config -D
11
- ```
12
-
13
- ### Extend this config
14
-
15
- in `.eslintrc.js`
16
-
17
- ```js
18
- module.exports = {
19
- root: true,
20
-
21
- extends: ['@ntnyq'],
22
-
23
- rules: {
24
- // Override rules
25
- },
26
- }
27
- ```
28
-
29
- in `package.json`
30
-
31
- ```json
32
- {
33
- "eslintConfig": {
34
- "root": true,
35
- "extends": "@ntnyq"
36
- }
37
- }
38
- ```