JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 167
  • Score
    100M100P100Q83850F
  • License MIT

Javascript Coding Style

Package Exports

  • @hongtak/style
  • @hongtak/style/eslint.style.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hongtak/style) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Style

To use my style, use the following command in Terminal:

$ npm install --save-dev @hongtak/style

or

$ npm i -D @hongtak/style

To setup, you'll need to add the following lines: (requires eslint>=v9.0.0)

import style from '@hongtak/style'

export default defineConfig([
  { files: ['**/*.{js,mjs,cjs}'], plugins: { js }, extends: ['js/recommended'] },
  { files: ['**/*.{js,mjs,cjs}'], languageOptions: { globals: globals.node } },
  style
])

Note: It recommends a use of the "engines" field of package.json. The "engines" field is used by n/no-unsupported-features/* rules.

"engines": {
  "node": ">=22.11.0" // Use your node runtime version here
}