Skip to content

Commit

Permalink
Upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
madmath committed Jan 17, 2025
1 parent 1595fdb commit 6455921
Show file tree
Hide file tree
Showing 9 changed files with 2,206 additions and 2,601 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const shopify = require('@shopify/eslint-plugin');
const parser = require('@typescript-eslint/parser');

module.exports = [
{
ignores: [
'**/dist/**',
'**/node_modules/**',
],
},
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: parser,
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2022,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
}
},
plugins: {
shopify: shopify,
},
rules: {
'import/extensions': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'node/no-extraneous-require': 'off',
'import/no-cycle': 'off',
'callback-return': 'off',
'import/named': 'off',
'func-style': 'off',
'shopify/jsx-no-hardcoded-content': 'off',
'shopify/restrict-full-import': ['error', 'lodash'],
},
},
];
25 changes: 11 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,24 @@
"homepage": "https://github.com/Shopify/shopify-devtools#readme",
"dependencies": {
"@types/chrome": "^0.0.297",
"@types/jsdom": "^21.1.7",
"auth0-chrome": "^0.1.2",
"autobind-decorator": "^2.4.0",
"buffer": "^6.0.3",
"copy-webpack-plugin": "^8.1.1",
"jsdom": "^15.2.1"
"buffer": "^6.0.3"
},
"devDependencies": {
"clean-webpack-plugin": "^3.0.0",
"@babel/core": "^7.x.x",
"@babel/eslint-parser": "^7.x.x",
"@shopify/eslint-plugin": "^46.0.0",
"@typescript-eslint/parser": "^8.20.0",
"clean-webpack-plugin": "^4.0.0",
"closure-webpack-plugin": "^2.5.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",
"eslint": "^6.8.0",
"eslint-plugin-shopify": "^30.0.1",
"google-closure-compiler": "^20210406.0.0",
"eslint": "^8.56.0",
"google-closure-compiler": "^20240317.0.0",
"html-webpack-inline-svg-plugin": "^2.3.0",
"html-webpack-plugin": "^5.3.1",
"identity-obj-proxy": "^3.0.0",
"mini-css-extract-plugin": "^1.5.0",
"html-webpack-plugin": "^5.6.3",
"mini-css-extract-plugin": "^2.9.2",
"prettier": "^3.4.2",
"sinon-chrome": "^3.0.1",
"style-loader": "^1.3.0",
"ts-loader": "^9.5.2",
"typescript": "^5.7.3",
"webpack": "^5.97.1",
Expand Down
1 change: 0 additions & 1 deletion src/types/AccessToken.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable babel/camelcase */
export interface ClientTokenResponseBody {
access_token: string;
expires_in: number;
Expand Down
2 changes: 0 additions & 2 deletions src/types/OpenIdConfig.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable babel/camelcase */

export interface OpenIdConfig {
issuer: string;
authorization_endpoint: string;
Expand Down
2 changes: 0 additions & 2 deletions src/types/TokenIntrospection.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable babel/camelcase */

export interface TokenIntrospection {
valid: boolean;
scope: string;
Expand Down
1 change: 0 additions & 1 deletion src/types/UserInfo.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable babel/camelcase */
export interface UserInfo {
email: string;
email_verified: boolean;
Expand Down
Loading

0 comments on commit 6455921

Please sign in to comment.