Skip to main content
Version: current

@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' }
}
]
});

Ask the community. #help

If you can't find what you're looking for, the answer might be on our community slack channel. Our team keep a close eye on this and will usually get back to you within a few hours, if not straight away. If you haven't created an account yet please sign up here slack.deity.io.

Stay up to date

Do you want to be informed when we release new features or fixes? Sign up to our newsletter to stay in the loop.