Skip to content

Commit d40ec3c

Browse files
authored
ARGG-946 Add @skyscanner/[email protected] to dependencies (#692)
* ARGG-946 Add @skyscanner/eslint-plugin-rules * Use @skyscanner/[email protected]
1 parent b33d72c commit d40ec3c

File tree

9 files changed

+18
-181
lines changed

9 files changed

+18
-181
lines changed

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ If your project doesn't use it or it is not installed in the same `package.json`
2727
}
2828
```
2929

30-
## Rules included in this repository
31-
32-
Custom rules are currently wrapped in a locally-installed package.
33-
This will no longer be needed once the eslint version used accepts objects as shown in
34-
[custom rules tutorial](https://eslint.org/docs/latest/extend/custom-rule-tutorial#step-8-use-the-plugin-locally).
35-
3630
## Changelog
3731

3832
[View our up-to-date changelog](./CHANGELOG.md).

eslint-plugin-skyscanner-no-axios/package.json

-3
This file was deleted.

eslint-plugin-skyscanner-no-axios/src/index.js

-7
This file was deleted.

eslint-plugin-skyscanner-no-axios/src/rules/no-axios.js

-39
This file was deleted.

eslint-plugin-skyscanner-no-axios/src/rules/no-axios.test.js

-112
This file was deleted.

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ module.exports = {
3939
'jest-formatting',
4040
'sort-destructure-keys',
4141
'typescript-enum',
42-
'skyscanner-no-axios',
42+
'@skyscanner/rules',
4343
],
4444
rules: {
4545
'prettier/prettier': 'error',
4646
'valid-jsdoc': ['error'],
4747
'backpack/use-tokens': 'error',
4848
'backpack/use-components': 'off',
49-
'skyscanner-no-axios/no-axios': 'error',
49+
'@skyscanner/rules/no-axios': 'error',
5050

5151
// This rule is pretty restrictive and we feel this decision should be left to developers to decide on a case by case basis.
5252
// A file can contain more than one class and still have a single responsibility

package-lock.json

+14-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@babel/core": "^7.23.7",
4848
"@babel/eslint-parser": "^7.23.3",
4949
"@babel/preset-react": "^7.23.3",
50+
"@skyscanner/eslint-plugin-rules": "^1.0.1",
5051
"@typescript-eslint/eslint-plugin": "^6.19.0",
5152
"@typescript-eslint/parser": "^6.18.1",
5253
"colors": "^1.4.0",
@@ -58,7 +59,6 @@
5859
"eslint-plugin-import": "^2.29.1",
5960
"eslint-plugin-jest": "^27.6.3",
6061
"eslint-plugin-jest-formatting": "^3.1.0",
61-
"eslint-plugin-skyscanner-no-axios": "file:./eslint-plugin-skyscanner-no-axios",
6262
"eslint-plugin-jsx-a11y": "^6.8.0",
6363
"eslint-plugin-prettier": "^5.1.3",
6464
"eslint-plugin-react": "^7.33.2",

test/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"test:fail-react": "echo 'Expecting failure' && eslint react-fail.tsx; if [ $? -eq 1 ]; then exit 0; fi",
1818
"test:fail-import-order": "echo 'Expecting failure' && eslint order-fail.jsx; if [ $? -eq 1 ]; then exit 0; fi",
1919
"test:fail-no-axios": "echo 'Expecting failure' && eslint no-axios-fail.jsx; if [ $? -eq 1 ]; then exit 0; fi",
20-
"test:skyscanner-no-axios": "cd ../eslint-plugin-skyscanner-no-axios; jest",
21-
"test": "npm run test:skyscanner-no-axios && npm run test:fail-no-axios && npm run test:pass && npm run test:fail-jsdoc && npm run test:fail-bpk && npm run test:fail-prettier && npm run test:fail-react && npm run test:fail-import-order"
20+
"test": "npm run test:pass && npm run test:fail-no-axios &&npm run test:fail-jsdoc && npm run test:fail-bpk && npm run test:fail-prettier && npm run test:fail-react && npm run test:fail-import-order"
2221
},
2322
"dependencies": {
2423
"prop-types": "^15.5.10",

0 commit comments

Comments
 (0)