module.exports = { // root: true, parserOptions: { ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features sourceType: 'module' // Allows for the use of imports, }, env: { browser: true, // Enables browser globals like window and document amd: true, // Enables require() and define() as global variables as per the amd spec. node: true, // Enables Node.js global variables and Node.js scoping. jest: true }, extends: [ 'airbnb-base', 'plugin:prettier/recommended' // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. ], rules: { // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs semi: 0, 'comma-dangle': 0, 'no-underscore-dangle': 0, camelcase: 0, 'prettier/prettier': ['error', {}, { usePrettierrc: true }] } }