diff --git a/.eslintrc.js b/.eslintrc.js index caaf25ac17..a0aeb0ec66 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,52 +1,4 @@ module.exports = { root: true, - extends: ['eslint:recommended', 'plugin:react/recommended'], - globals: { - wp: true, - }, - env: { - node: true, - es6: true, - amd: true, - browser: true, - jquery: true, - }, - parser: '@babel/eslint-parser', - parserOptions: { - ecmaFeatures: { - experimentalObjectRestSpread: true, - globalReturn: true, - generators: false, - impliedStrict: true, - objectLiteralDuplicateProperties: false, - jsx: true, - }, - ecmaVersion: 2017, - requireConfigFile: false, - sourceType: 'module', - }, - plugins: ['import', 'react-hooks'], - settings: { - react: { - version: 'detect', - }, - 'import/core-modules': [], - 'import/ignore': [ - 'node_modules', - '\\.(coffee|scss|css|less|hbs|svg|json)$', - ], - }, - rules: { - 'no-console': 0, - 'comma-dangle': [ - 'error', - { - arrays: 'always-multiline', - objects: 'always-multiline', - imports: 'always-multiline', - exports: 'always-multiline', - functions: 'ignore', - }, - ], - }, + extends: [require.resolve('@roots/sage/eslint-config')], }; diff --git a/.stylelintrc b/.stylelintrc index 83ac1e2714..81d541b210 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,42 +1,6 @@ { - "extends": "stylelint-config-standard", - "rules": { - "string-quotes": null, - "selector-class-pattern": null, - "declaration-colon-newline-after": null, - "value-list-comma-newline-after": null, - "no-empty-source": null, - "no-descending-specificity": null, - "at-rule-empty-line-before": null, - "at-rule-no-unknown": [ - true, - { - "ignoreAtRules": [ - "extend", - "at-root", - "debug", - "warn", - "error", - "if", - "else", - "for", - "each", - "while", - "mixin", - "include", - "content", - "return", - "tailwind", - "apply", - "responsive", - "variants", - "screen", - "function", - "use", - "forward", - "layer" - ] - } - ] - } + "extends": [ + "@roots/sage/stylelint-config", + "@roots/bud-tailwindcss/stylelint-config" + ] } diff --git a/bud.config.js b/bud.config.js index 9b84f42671..f175918554 100644 --- a/bud.config.js +++ b/bud.config.js @@ -1,9 +1,8 @@ /** - * @typedef {import('@roots/bud').Bud} Bud + * @typedef {import('@roots/bud').Bud} bud * - * @param {Bud} app + * @param {bud} app */ - module.exports = (app) => app /** diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000000..8764d58bc2 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": ".", + "lib": ["dom", "dom.iterable", "esnext"], + "module": "commonjs", + "moduleResolution": "node", + "paths": { + "@scripts/*": ["./resources/scripts/*"], + "@styles/*": ["./resources/styles/*"] + }, + "target": "es5" + }, + "exclude": ["./public"] +} diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 05a7035fae..0000000000 --- a/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./resources", - "paths": { - "@scripts/*": ["scripts/*"], - "@styles/*": ["styles/*"] - }, - "outDir": "./public", - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "strict": false, - "checkJs": false, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "jsx": "preserve" - }, - "include": ["resources/**/*"], - "exclude": ["node_modules"] -}