caccl-api
Version:
A class that defines a set of smart Canvas endpoints that actually behave how you'd expect them to.
84 lines (82 loc) • 1.6 kB
JavaScript
const config = {
extends: [
'airbnb',
'airbnb/hooks',
],
overrides: [
{
files: [
'*.ts',
'*.tsx',
],
extends: [
'airbnb-typescript',
],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
rules: {
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
},
},
],
rules: {
'arrow-body-style': [
'warn',
'always',
],
'no-spaced-func': 'off',
'lines-between-class-members': 'off',
'no-case-declarations': 'off',
'arrow-parens': [
'warn',
'always',
],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
},
],
'consistent-return': 'off',
'id-length': 'off',
'max-len': [
'error',
{
code: 125,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
},
],
'newline-per-chained-call': [
'error',
{
ignoreChainWithDepth: 2,
},
],
'no-plusplus': [
'warn',
{
allowForLoopAfterthoughts: true,
},
],
'prefer-template': 1,
radix: 'error',
'no-await-in-loop': 'off',
'max-params': [
'warn',
{
max: 3,
},
],
},
};
module.exports = config;