@ntnyq/eslint-config 0.3.2 → 1.0.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/LICENSE +1 -1
- package/lib/index.js +2 -34
- package/package.json +22 -18
- package/CHANGELOG.md +0 -38
- package/README.md +0 -38
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
|
-
*
|
|
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
|
-
|
|
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.
|
|
4
|
-
"description": "
|
|
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.0",
|
|
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-
|
|
26
|
-
"eslint-plugin
|
|
27
|
-
"eslint
|
|
28
|
-
"eslint-plugin-
|
|
16
|
+
"@ntnyq/eslint-config-vue": "1.0.0",
|
|
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
|
-
"
|
|
34
|
-
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"eslint": "^8.15.0",
|
|
36
|
+
"typescript": "^4.0.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.3.2](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.3.1...@ntnyq/eslint-config@0.3.2) (2021-02-20)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ntnyq/eslint-config
|
|
9
|
-
|
|
10
|
-
## [0.3.1](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.3.0...@ntnyq/eslint-config@0.3.1) (2021-01-30)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @ntnyq/eslint-config
|
|
13
|
-
|
|
14
|
-
# [0.3.0](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.2.0...@ntnyq/eslint-config@0.3.0) (2020-12-10)
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
- deprecate eslint-plugin-standard ([66f0e1a](https://github.com/ntnyq/configs/commit/66f0e1a2ca5060a631477a69d6706a6a8fda2708))
|
|
19
|
-
|
|
20
|
-
# [0.2.0](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.1.0...@ntnyq/eslint-config@0.2.0) (2020-11-19)
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
- prettier overrides config ([3185cbf](https://github.com/ntnyq/configs/commit/3185cbf4a167796c4a702e7bc76a8193e5596551))
|
|
25
|
-
|
|
26
|
-
# [0.1.0](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.0.2...@ntnyq/eslint-config@0.1.0) (2020-11-07)
|
|
27
|
-
|
|
28
|
-
### Features
|
|
29
|
-
|
|
30
|
-
- extract babel-eslint ([a1f7446](https://github.com/ntnyq/configs/commit/a1f744685ff7038a72a94a0efe69b28eb27d0a7e))
|
|
31
|
-
|
|
32
|
-
## [0.0.2](https://github.com/ntnyq/configs/compare/@ntnyq/eslint-config@0.0.1...@ntnyq/eslint-config@0.0.2) (2020-10-10)
|
|
33
|
-
|
|
34
|
-
**Note:** Version bump only for package @ntnyq/eslint-config
|
|
35
|
-
|
|
36
|
-
## 0.0.1 (2020-09-09)
|
|
37
|
-
|
|
38
|
-
**Note:** Version bump only for package @ntnyq/eslint-config
|
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
|
-
```
|