eslint-config-scratch 5.1.0 → 8.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/.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
package/.travis.yml CHANGED
@@ -1,17 +1,10 @@
1
1
  sudo: false
2
2
  language: node_js
3
- cache:
4
- directories:
5
- - node_modules
6
3
  notifications:
7
4
  email: false
8
5
  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
6
+ - lts/*
7
+ install: npm ci --production=false
15
8
  after_success:
16
9
  - npx semantic-release
17
10
  branches:
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
package/es6.js CHANGED
@@ -6,14 +6,25 @@ module.exports = {
6
6
  before: true,
7
7
  after: true
8
8
  }],
9
+ 'no-prototype-builtins': [2],
9
10
  'no-confusing-arrow': [2],
11
+ 'no-duplicate-imports': [2],
12
+ 'no-return-await': [2],
13
+ 'no-template-curly-in-string': [2],
10
14
  'no-useless-computed-key': [2],
11
15
  'no-useless-constructor': [2],
16
+ 'no-useless-rename': [2],
12
17
  'no-var': [2],
13
18
  'prefer-arrow-callback': [2],
14
19
  'prefer-const': [2, {destructuring: 'all'}],
20
+ 'prefer-promise-reject-errors': [2],
21
+ 'prefer-rest-params': [2],
22
+ 'prefer-spread': [2],
15
23
  'prefer-template': [2],
24
+ 'require-atomic-updates': [2],
25
+ 'require-await': [2],
16
26
  'rest-spread-spacing': [2, 'never'],
27
+ 'symbol-description': [2],
17
28
  'template-curly-spacing': [2, 'never']
18
29
  },
19
30
  env: {
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, {
@@ -56,9 +59,7 @@ module.exports = {
56
59
  'no-useless-call': [2],
57
60
  'no-useless-concat': [2],
58
61
  'no-useless-escape': [2],
59
- 'no-warning-comments': [1, {
60
- location: 'anywhere'
61
- }],
62
+ 'no-warning-comments': [0],
62
63
  'no-with': [2],
63
64
  'radix': [2],
64
65
  'wrap-iife': [2],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-scratch",
3
- "version": "5.1.0",
3
+ "version": "8.0.0",
4
4
  "description": "Shareable ESLint config for Scratch",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,13 +28,13 @@
28
28
  "eslint-plugin-react": ">=7.14.2"
29
29
  },
30
30
  "peerDependencies": {
31
- "babel-eslint": ">=8.0.1",
32
- "eslint": ">=4.0.0"
31
+ "@babel/eslint-parser": "^7.11.0",
32
+ "eslint": "^7.5.0 || ^8.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "babel-eslint": "10.0.2",
36
- "cz-conventional-changelog": "2.1.0",
37
- "eslint": "^6.0.1"
35
+ "@babel/eslint-parser": "7.17.0",
36
+ "cz-conventional-changelog": "3.0.2",
37
+ "eslint": "8.15.0"
38
38
  },
39
39
  "config": {
40
40
  "commitizen": {
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
+ }