old-ybbond

My old site that was written with ReactJS
Log | Files | Refs | README | LICENSE | CC-LICENSE

.eslintrc.js (853B)


      1 module.exports = {
      2   env: {
      3     browser: true,
      4     es6: true,
      5     node: true,
      6   },
      7   extends: [
      8     'eslint:recommended',
      9     'plugin:react/recommended',
     10     'plugin:flowtype/recommended',
     11     'plugin:prettier/recommended',
     12   ],
     13   globals: {
     14     Atomics: 'readonly',
     15     SharedArrayBuffer: 'readonly',
     16   },
     17   parser: 'babel-eslint',
     18   parserOptions: {
     19     ecmaFeatures: {
     20       jsx: true,
     21     },
     22     ecmaVersion: 2018,
     23     sourceType: 'module',
     24   },
     25   plugins: ['react', 'flowtype', 'prettier'],
     26   settings: {
     27     react: {
     28       version: '16.13.0',
     29       flowVersion: '0.120.1',
     30     },
     31     flowtype: {
     32       onlyFilesWithFlowAnnotation: false,
     33     },
     34   },
     35   rules: {
     36     'prettier/prettier': [
     37       'error',
     38       {
     39         singleQuote: true,
     40         trailingComma: 'all',
     41         bracketSpacing: false,
     42         printWidth: 80,
     43       },
     44     ],
     45   },
     46 };