Skip to content

Commit

Permalink
deps: rm eslint-config-airbnb-base
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker committed Nov 4, 2024
1 parent b4cf135 commit 62d5acb
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 115 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
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
4 changes: 2 additions & 2 deletions src/setup-tflint.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const os = require('os');
const path = require('path');
const fetch = require('node-fetch');

const core = require('@actions/core');
const io = require('@actions/io');
const tc = require('@actions/tool-cache');
const { Octokit } = require('@octokit/rest');
const fetch = require('node-fetch');

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

Expand Down

0 comments on commit 62d5acb

Please sign in to comment.