Skip to main content

@deity/eslint-config-falcon

ESLint is used for code formatting, this is our default config that will help keep your code clean and unified.

This package provides a handy set of default rules.

It's used in 2 files in both server and client.

  • client/.eslintrc & server/.eslintrc
  • client/prettier.config.js & server/prettier.config.js

.eslintrc

{
"extends": ["@deity/eslint-config-falcon"],
"env": {
"worker": true
}
}

prettier.config.js

const esLint = require('@deity/eslint-config-falcon');

module.exports = Object.assign({}, esLint.rules['prettier/prettier'][1], {
overrides: [
{
files: ['.eslintrc'],
options: { parser: 'json' }
}
]
});