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.
@@ -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
@@ -1 +1,5 @@
1
1
  *.js text eol=lf
2
+ *.json text eol=lf
3
+ *.json5 text eol=lf
4
+
5
+ .gitattributes text eol=lf
@@ -0,0 +1 @@
1
+ * text eol=lf
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit "$1"
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 -D eslint-config-scratch eslint@3 babel-eslint@7
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 -D eslint-plugin-react@6
18
+ npm install -DE eslint-plugin-react@^7
16
19
  ```
17
20
 
18
21
  ## Usage
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ extends: ['@commitlint/config-conventional'],
3
+ ignores: [message => message.startsWith('chore(release):')]
4
+ };
package/es6.js CHANGED
@@ -6,6 +6,7 @@ module.exports = {
6
6
  before: true,
7
7
  after: true
8
8
  }],
9
+ 'no-prototype-builtins': [2],
9
10
  'no-confusing-arrow': [2],
10
11
  'no-duplicate-imports': [2],
11
12
  'no-return-await': [2],
package/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  module.exports = {
2
- parser: 'babel-eslint',
2
+ parser: '@babel/eslint-parser',
3
+ parserOptions: {
4
+ requireConfigFile: false
5
+ },
3
6
  rules: {
4
7
  // Errors
5
8
  'valid-jsdoc': [2, {
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "eslint-config-scratch",
3
- "version": "7.0.0",
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.14.2"
29
+ "eslint-plugin-react": ">=7.27.0"
29
30
  },
30
31
  "peerDependencies": {
31
- "babel-eslint": ">=8.0.1",
32
- "eslint": ">=5.3.0"
32
+ "@babel/eslint-parser": "^7.11.0",
33
+ "eslint": "^8.0.0"
33
34
  },
34
35
  "devDependencies": {
35
- "babel-eslint": "10.0.3",
36
- "cz-conventional-changelog": "3.0.2",
37
- "eslint": "^6.0.1"
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": "./node_modules/cz-conventional-changelog"
45
+ "path": "cz-conventional-changelog"
42
46
  }
43
47
  }
44
48
  }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ extends: 'scratch-semantic-release-config',
3
+ branches: [
4
+ {
5
+ name: 'master'
6
+ // default channel
7
+ }
8
+ ]
9
+ };
package/renovate.json5 ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+
4
+ "extends": [
5
+ "github>LLK/scratch-renovate-config:conservative"
6
+ ]
7
+ }
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+$/