Skip to content

Commit cd1d2c9

Browse files
authored
deps: rm eslint-config-airbnb-base (#255)
1 parent 5bdcb64 commit cd1d2c9

File tree

5 files changed

+114
-117
lines changed

5 files changed

+114
-117
lines changed

.eslintrc.js

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ module.exports = {
77
'security',
88
'import',
99
],
10-
extends: ['eslint:recommended', 'airbnb-base', 'prettier', 'plugin:prettier/recommended'],
10+
extends: ['eslint:recommended', 'prettier', 'plugin:prettier/recommended'],
1111
env: {
1212
node: true,
1313
es6: true,
1414
},
15+
parser: '@babel/eslint-parser',
16+
parserOptions: {
17+
requireConfigFile: false,
18+
},
1519
settings: {
1620
'import/resolver': {
1721
node: {
@@ -70,7 +74,6 @@ module.exports = {
7074
{ blankLine: 'always', prev: 'if', next: 'if' },
7175
{ blankLine: 'never', prev: ['return', 'throw'], next: '*' },
7276
],
73-
strict: ['error', 'safe'],
7477
'no-new': 'off',
7578
'no-empty': 'error',
7679
'no-empty-function': 'error',
@@ -126,47 +129,7 @@ module.exports = {
126129
'security/detect-pseudoRandomBytes': 'error',
127130
'security/detect-unsafe-regex': 'error',
128131

129-
// Override airbnb
130-
eqeqeq: ['error', 'smart'],
131-
'func-names': 'error',
132-
'id-length': ['error', { exceptions: ['_', '$', 'e', 'i', 'j', 'k', 'q', 'x', 'y'] }],
133-
'no-param-reassign': 'off', // Work toward enforcing this rule
134-
radix: 'off',
135-
'spaced-comment': 'off',
136-
'max-len': 'off',
137-
'no-continue': 'off',
138-
'no-plusplus': 'off',
139-
'no-prototype-builtins': 'off',
140-
'no-restricted-syntax': ['error', 'DebuggerStatement', 'LabeledStatement', 'WithStatement'],
141-
'no-restricted-properties': [
142-
'error',
143-
{
144-
object: 'arguments',
145-
property: 'callee',
146-
message: 'arguments.callee is deprecated',
147-
},
148-
{
149-
property: '__defineGetter__',
150-
message: 'Please use Object.defineProperty instead.',
151-
},
152-
{
153-
property: '__defineSetter__',
154-
message: 'Please use Object.defineProperty instead.',
155-
},
156-
],
157-
'no-useless-escape': 'off',
158-
'object-shorthand': [
159-
'error',
160-
'always',
161-
{
162-
ignoreConstructors: false,
163-
avoidQuotes: true,
164-
avoidExplicitReturnArrows: true,
165-
},
166-
],
167-
// 'prefer-arrow-callback': ['error', { 'allowNamedFunctions': true }],
168-
'prefer-spread': 'error',
169-
'prefer-destructuring': 'off',
132+
strict: 'off',
170133
},
171134
overrides: [
172135
{

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13949,12 +13949,12 @@ function wrappy (fn, cb) {
1394913949

1395013950
const os = __nccwpck_require__(2037);
1395113951
const path = __nccwpck_require__(1017);
13952-
const fetch = __nccwpck_require__(467);
1395313952

1395413953
const core = __nccwpck_require__(2186);
1395513954
const io = __nccwpck_require__(7436);
1395613955
const tc = __nccwpck_require__(7784);
1395713956
const { Octokit } = __nccwpck_require__(5375);
13957+
const fetch = __nccwpck_require__(467);
1395813958

1395913959
/**
1396013960
* Get the GitHub platform architecture name
@@ -13984,7 +13984,7 @@ function mapOS(osPlatform) {
1398413984
function getOctokit() {
1398513985
return new Octokit({
1398613986
auth: core.getInput('github_token'),
13987-
request: {fetch}
13987+
request: { fetch },
1398813988
});
1398913989
}
1399013990

package-lock.json

Lines changed: 103 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"process": "^0.11.10"
4343
},
4444
"devDependencies": {
45+
"@babel/eslint-parser": "^7.25.9",
4546
"@vercel/ncc": "^0.38.1",
4647
"eslint": "^8.56.0",
47-
"eslint-config-airbnb-base": "^15.0.0",
4848
"eslint-config-prettier": "^9.1.0",
4949
"eslint-plugin-import": "^2.29.1",
5050
"eslint-plugin-jest": "^28.8.3",

0 commit comments

Comments
 (0)