config/eslint.config.js (25 lines of code) (raw):
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true
},
extends: ['airbnb-base', 'prettier'],
plugins: ['jest', 'prettier'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'prettier/prettier': ['error', { singleQuote: true }],
'no-bitwise': 'off',
'no-plusplus': 'off',
'no-param-reassign': 'off',
'prefer-destructuring': 'off'
}
};