1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Update to latest @twipped/eslint-config

This commit is contained in:
Jocelyn Badgley (Twipped)
2023-01-02 14:58:23 -08:00
parent 0ba2defbc2
commit 9fd4723c1c
22 changed files with 6750 additions and 6206 deletions

View File

@@ -1,3 +1,6 @@
/* eslint-disable react/prop-types, n/no-missing-import, import/no-unresolved */
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/** @jsx h */
import { h, render, Component, Fragment } from 'preact';

View File

@@ -1,6 +1,6 @@
module.exports = exports = {
extends: 'twipped/browser',
extends: '@twipped/eslint-config/browser',
env: { es6: true, jquery: true },
rules: {
'indent': [ 2, 2, {
@@ -8,17 +8,17 @@ module.exports = exports = {
} ],
'prefer-arrow-callback': 0,
'object-shorthand': 0,
'node/no-unsupported-features/node-builtins': 0,
'n/no-unsupported-features/node-builtins': 0,
},
overrides: [
{
files: '$*.jsx',
extends: 'twipped/react',
extends: '@twipped/eslint-config/react',
rules: {
'react/jsx-indent': [ 2, 2, { checkAttributes: true } ],
'react/no-unknown-property': [ 2, { ignore: [ 'class' ] } ],
'node/no-unpublished-import': 0,
'node/no-missing-import': [ 'error', {
'n/no-unpublished-import': 0,
'n/no-missing-import': [ 'error', {
'allowModules': [ 'svg', 'react' ],
} ],
},