Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: rm eslint-config-airbnb-base #255

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -14474,12 +14474,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 @@ -14509,7 +14509,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
Loading