mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 23:08:26 -04:00
* convert GitHub cards grid from lit-html to preact * give hit counter the preact treatment * extract loading spinner component to a shared location * move *some* loading spinner styles to its JSX * Update .percy.yml * pick up images in JS w/ webpack * pull star/fork icons straight from @primer/octicons * a bit of cleanup * check `typeof window !== "undefined"` before rendering * bump misc. deps * silence missing license warnings for preact-hooks and preact-compat * add source-map-loader * Update loading.js
43 lines
908 B
JavaScript
43 lines
908 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
"@jakejarvis/eslint-config",
|
|
"preact",
|
|
"plugin:compat/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:no-unsanitized/DOM",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
plugins: ["prettier"],
|
|
parser: "@babel/eslint-parser",
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
allowImportExportEverywhere: false,
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
presets: ["@babel/preset-env"],
|
|
},
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
rules: {
|
|
"compat/compat": "error",
|
|
},
|
|
overrides: [
|
|
{
|
|
// Serverless functions & root config files
|
|
files: ["api/**/*.js", "{.eslintrc,gulpfile,webpack.config}.{js,cjs}"],
|
|
env: {
|
|
node: true,
|
|
},
|
|
rules: {
|
|
"compat/compat": "off",
|
|
},
|
|
},
|
|
],
|
|
ignorePatterns: ["public/**", "static/assets/**"],
|
|
};
|