fastly / lintly

Fastly's front-end style-guide with configuration for eslint, tslint, stylelint, and more
1 stars 1 forks source link

rename to @fastly/lintly #1

Closed jamesarosen closed 6 years ago

jamesarosen commented 6 years ago

@kyleshevlin I just tried this in fastly-auth.js.

extends: ['@fastly/lintly/eslint-config'],

causes eslint to complain:

Cannot find module '@fastly/eslint-config-lintly/eslint-config'
Referenced from: /Users/jamesrosen/Code/fastly-auth.js/.eslintrc.js

So we might have to go mono-repo after all.

From the eslint docs:

when using scoped modules it is not possible to omit the eslint-config- prefix

On the other hand, consuming applications could import the eslint config just like the prettier config:

// my-app/.eslintrc.js
import lintlyConfig from '@fastly/lintly/eslint-config'
export default Object.assign({}, lintlyConfig, {
  root: true,
  ...
})