Skip to content

Commit

Permalink
deps: rm eslint-config-airbnb-base (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker authored Nov 4, 2024
1 parent 5bdcb64 commit cd1d2c9
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 117 deletions.
49 changes: 6 additions & 43 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ module.exports = {
'security',
'import',
],
extends: ['eslint:recommended', 'airbnb-base', 'prettier', 'plugin:prettier/recommended'],
extends: ['eslint:recommended', 'prettier', 'plugin:prettier/recommended'],
env: {
node: true,
es6: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
},
settings: {
'import/resolver': {
node: {
Expand Down Expand Up @@ -70,7 +74,6 @@ module.exports = {
{ blankLine: 'always', prev: 'if', next: 'if' },
{ blankLine: 'never', prev: ['return', 'throw'], next: '*' },
],
strict: ['error', 'safe'],
'no-new': 'off',
'no-empty': 'error',
'no-empty-function': 'error',
Expand Down Expand Up @@ -126,47 +129,7 @@ module.exports = {
'security/detect-pseudoRandomBytes': 'error',
'security/detect-unsafe-regex': 'error',

// Override airbnb
eqeqeq: ['error', 'smart'],
'func-names': 'error',
'id-length': ['error', { exceptions: ['_', '$', 'e', 'i', 'j', 'k', 'q', 'x', 'y'] }],
'no-param-reassign': 'off', // Work toward enforcing this rule
radix: 'off',
'spaced-comment': 'off',
'max-len': 'off',
'no-continue': 'off',
'no-plusplus': 'off',
'no-prototype-builtins': 'off',
'no-restricted-syntax': ['error', 'DebuggerStatement', 'LabeledStatement', 'WithStatement'],
'no-restricted-properties': [
'error',
{
object: 'arguments',
property: 'callee',
message: 'arguments.callee is deprecated',
},
{
property: '__defineGetter__',
message: 'Please use Object.defineProperty instead.',
},
{
property: '__defineSetter__',
message: 'Please use Object.defineProperty instead.',
},
],
'no-useless-escape': 'off',
'object-shorthand': [
'error',
'always',
{
ignoreConstructors: false,
avoidQuotes: true,
avoidExplicitReturnArrows: true,
},
],
// 'prefer-arrow-callback': ['error', { 'allowNamedFunctions': true }],
'prefer-spread': 'error',
'prefer-destructuring': 'off',
strict: 'off',
},
overrides: [
{
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13949,12 +13949,12 @@ function wrappy (fn, cb) {

const os = __nccwpck_require__(2037);
const path = __nccwpck_require__(1017);
const fetch = __nccwpck_require__(467);

const core = __nccwpck_require__(2186);
const io = __nccwpck_require__(7436);
const tc = __nccwpck_require__(7784);
const { Octokit } = __nccwpck_require__(5375);
const fetch = __nccwpck_require__(467);

/**
* Get the GitHub platform architecture name
Expand Down Expand Up @@ -13984,7 +13984,7 @@ function mapOS(osPlatform) {
function getOctokit() {
return new Octokit({
auth: core.getInput('github_token'),
request: {fetch}
request: { fetch },
});
}

Expand Down
172 changes: 103 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"process": "^0.11.10"
},
"devDependencies": {
"@babel/eslint-parser": "^7.25.9",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.8.3",
Expand Down
Loading

0 comments on commit cd1d2c9

Please sign in to comment.