@darksheep/eslint
TypeScript icon, indicating that this package has built-in type declarations

4.4.17 • Public • Published

eslint

Creating your eslint.config.js file

If you're using "type": "module" in your package.json you create a file like this:

import { createConfig } from '@darksheep/eslint';
export default await createConfig(import.meta.url);

If you're using "type": "commonjs" or you have not defined type in your package.json you create a file like this:

module.exports = (async () => {
  const { createConfig } = await import('@darksheep/eslint');
  return createConfig(__dirname);
})();

In your terminal you can run:

cat << EOF > eslint.config.js
import { createConfig } from '@darksheep/eslint';
export default await createConfig(import.meta.url);
EOF
cat << EOF > eslint.config.js
module.exports = (async () => {
  const { createConfig } = await import('@darksheep/eslint');
  return createConfig(__dirname);
})();
EOF

Readme

Keywords

none

Package Sidebar

Install

npm i @darksheep/eslint

Weekly Downloads

298

Version

4.4.17

License

none

Unpacked Size

193 kB

Total Files

76

Last publish

Collaborators

  • pbanks
  • scagood