This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@pnb/eslint

4.1.2 • 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 '@pnb/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('@pnb/eslint');
  return createConfig(__dirname);
})();

In your terminal you can run:

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

Readme

Keywords

none

Package Sidebar

Install

npm i @pnb/eslint

Weekly Downloads

13

Version

4.1.2

License

none

Unpacked Size

140 kB

Total Files

40

Last publish

Collaborators

  • scagood