mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08:00
Addresses #11 item "Linting/formatting (eg eslnt, prettier)": * Adding eslint, prettier, and config targeting Google, typescript, and both nodejs and client builds * Addressing linter-found issues * Adding lint and lint:fix commands * Adding documentation * Renaming workflow and adding lint check * Adding documentation about VSCode linting/formatting, ran formatting on a few files, set up exclude list for gatsby develop, setup build to fail on error
30 lines
476 B
JavaScript
30 lines
476 B
JavaScript
module.exports = {
|
|
'env': {
|
|
'browser': true,
|
|
'es2021': true,
|
|
'node': true,
|
|
},
|
|
'extends': [
|
|
'plugin:react/recommended',
|
|
'google',
|
|
],
|
|
'parser': '@typescript-eslint/parser',
|
|
'parserOptions': {
|
|
'ecmaFeatures': {
|
|
'jsx': true,
|
|
},
|
|
'ecmaVersion': 12,
|
|
'sourceType': 'module',
|
|
},
|
|
'plugins': [
|
|
'react',
|
|
'@typescript-eslint',
|
|
],
|
|
'rules': {
|
|
},
|
|
'settings': {
|
|
'react': {
|
|
'version': 'detect',
|
|
},
|
|
},
|
|
};
|