eslint-config-scratch 7.0.0 → 9.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/.circleci/config.yml +26 -0
- package/.gitattributes +4 -0
- package/.husky/.gitattributes +1 -0
- package/.husky/commit-msg +4 -0
- package/CHANGELOG.md +16 -0
- package/README.md +5 -2
- package/commitlint.config.js +4 -0
- package/es6.js +1 -0
- package/index.js +4 -1
- package/pack/eslint-config-scratch-9.0.0.tgz +0 -0
- package/package.json +12 -8
- package/release.config.js +9 -0
- package/renovate.json5 +7 -0
- package/.travis.yml +0 -19
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
orbs:
|
|
3
|
+
commitlint: conventional-changelog/commitlint@1.0.0
|
|
4
|
+
node: circleci/node@5.0.3
|
|
5
|
+
alias:
|
|
6
|
+
- &defaults
|
|
7
|
+
docker:
|
|
8
|
+
- image: cimg/node:lts
|
|
9
|
+
executor: node/default
|
|
10
|
+
jobs:
|
|
11
|
+
main-job:
|
|
12
|
+
<<: *defaults
|
|
13
|
+
steps:
|
|
14
|
+
- checkout
|
|
15
|
+
- node/install-packages
|
|
16
|
+
- run: npm test
|
|
17
|
+
- run: npx semantic-release
|
|
18
|
+
workflows:
|
|
19
|
+
version: 2
|
|
20
|
+
commitlint:
|
|
21
|
+
jobs:
|
|
22
|
+
- commitlint/lint:
|
|
23
|
+
target-branch: master
|
|
24
|
+
main-workflow:
|
|
25
|
+
jobs:
|
|
26
|
+
- main-job
|
package/.gitattributes
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text eol=lf
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See
|
|
4
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [9.0.0](https://github.com/LLK/eslint-config-scratch/compare/v8.0.0...v9.0.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** fix eslint-plugin-react dep conflict ([cacb72c](https://github.com/LLK/eslint-config-scratch/commit/cacb72c2281b99b5b3f7462256451443ae98e1bb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **deps:** now requires eslint@^8
|
package/README.md
CHANGED
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
#### eslint-config-scratch defines the eslint rules used for Scratch Javascript projects
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
|
+
|
|
8
9
|
Install the config along with its peer dependencies, eslint and babel-eslint.
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
|
-
npm install -
|
|
12
|
+
npm install -DE eslint-config-scratch eslint@^8 @babel/eslint-parser@^7
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
If you're using the React config, also install the dependency for that
|
|
16
|
+
|
|
14
17
|
```bash
|
|
15
|
-
npm install -
|
|
18
|
+
npm install -DE eslint-plugin-react@^7
|
|
16
19
|
```
|
|
17
20
|
|
|
18
21
|
## Usage
|
package/es6.js
CHANGED
package/index.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-scratch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Shareable ESLint config for Scratch",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"prepare": "husky install",
|
|
7
8
|
"test": "eslint ."
|
|
8
9
|
},
|
|
9
10
|
"eslintConfig": {
|
|
@@ -25,20 +26,23 @@
|
|
|
25
26
|
"scratch"
|
|
26
27
|
],
|
|
27
28
|
"optionalDependencies": {
|
|
28
|
-
"eslint-plugin-react": ">=7.
|
|
29
|
+
"eslint-plugin-react": ">=7.27.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"babel-
|
|
32
|
-
"eslint": "
|
|
32
|
+
"@babel/eslint-parser": "^7.11.0",
|
|
33
|
+
"eslint": "^8.0.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"babel-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"@babel/eslint-parser": "7.17.0",
|
|
37
|
+
"@commitlint/cli": "17.1.2",
|
|
38
|
+
"@commitlint/config-conventional": "17.1.0",
|
|
39
|
+
"eslint": "8.15.0",
|
|
40
|
+
"husky": "8.0.1",
|
|
41
|
+
"scratch-semantic-release-config": "1.0.5"
|
|
38
42
|
},
|
|
39
43
|
"config": {
|
|
40
44
|
"commitizen": {
|
|
41
|
-
"path": "
|
|
45
|
+
"path": "cz-conventional-changelog"
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
}
|
package/renovate.json5
ADDED
package/.travis.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: node_js
|
|
3
|
-
cache:
|
|
4
|
-
directories:
|
|
5
|
-
- node_modules
|
|
6
|
-
notifications:
|
|
7
|
-
email: false
|
|
8
|
-
node_js:
|
|
9
|
-
- 10
|
|
10
|
-
before_install:
|
|
11
|
-
- npm install -g greenkeeper-lockfile
|
|
12
|
-
install: npm install
|
|
13
|
-
before_script: greenkeeper-lockfile-update
|
|
14
|
-
after_script: greenkeeper-lockfile-upload
|
|
15
|
-
after_success:
|
|
16
|
-
- npx semantic-release
|
|
17
|
-
branches:
|
|
18
|
-
except:
|
|
19
|
-
- /^v\d+\.\d+\.\d+$/
|